import { generateRandStr } from '@/utils'
module.exports = {
	domain:'https://api.zesi.com.cn',
  resourceBaseUrl: 'https://img.intelirri.com/device/',
	zoom: 14, //初始级别
	center: [37.316254, 121.405887], //初始中心点
	minZoom: 10, //最小级别
	maxZoom: 18, //最大界别
	urls:[
	  'http://t0.tianditu.gov.cn/img_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&tk=ecc4efeba82345383cdfda67f5154cf0',
	  'https://t0.tianditu.gov.cn/cia_w/wmts?tk=ecc4efeba82345383cdfda67f5154cf0&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cia&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TileMatrix={z}&TileCol={x}&TileRow={y}'
	],
	topic:'D/0103.0007.2038000000/#',
	url: 'https://google.intelirri.com/google/?x={x}&y={y}&z={z}', //获取jpg瓦片的url
  projectId: 21,
  dclassCodeMap: {
    'sb': 3,
    'pg': 4,
    'dg': 5,
    'sf': 6,
    'qxz': 7,
    'sqz': 8,
    'fm': 13,
    'fkq': 14,
    'gcwd': 15,
    'gd': 16,
    'gps': 17,
    'ndvi': 18,
    'zypz': 19,
    'zyp': 20,
    'ylj': 21,
    'llj': 22,
    'czsb': 23,
		'zfb':24,
		'jbb': 25,
		'cqz': 26,
		'df': 30,
		'zk':90,
		'bddx':95,
		'gdgcwd':96,
		'fdj': 97,
		'db': 98,
    'spjk': 99,
		'wg': 100,
		'qf': 101
  },
	deviceStatusMap:{
		'd_break':'设备掉线',
		'd_close':'设备停止',
		'd_run':'设备运行',
		'd_trouble':'设备故障',
		'd_alarm':'设备报警',
		'd_forward':'设备正转',
		'd_reverse':'设备反转',
		'd_pause':'设备中止'
	},
  dclassMap: {
    3: {
      name: '水泵',
      code: 'sb'
    },
    4: {
      name: '喷灌机',
      code: 'pg'
    },
    5: {
      name: '滴灌',
      code: 'dg'
    },
    6: {
      name: '施肥机',
      code: 'sf'
    },
    7: {
      name: '气象站',
      code: 'qxz'
    },
    8: {
      name: '墒情站',
      code: 'sqz'
    },
    13: {
      name: '阀门',
      code: 'fm'
    },
    14: {
      name: '阀控器',
      code: 'fkq'
    },
    15: {
      name: '机载冠层温度',
      code: 'gcwd'
    },
    16: {
      name: '高度',
      code: 'gd'
    },
    17: {
      name: '定位装置',
      code: 'gps'
    },
    18: {
      name: 'NDVI',
      code: 'ndvi'
    },
    19: {
      name: '遮雨篷组',
      code: 'zypz'
    },
    20: {
      name: '遮雨篷',
      code: 'zyp'
    },
    21: {
      name: '雨量计',
      code: 'ylj'
    },
    22: {
      name: '流量计',
      code: 'llj'
    },
    23: {
      name: '车载终端',
      code: 'czsb'
    },
		24: {
		  name: '注肥泵',
		  code: 'zfb'
		},
		25: {
		  name: '搅拌泵',
		  code: 'jbb'
		},
		26: {
		  name: '虫情站',
		  code: 'cqz'
		},
		30: {
		  name: '蝶阀',
		  code: 'df'
		},
		90: {
		  name: '闸控',
		  code: 'zk'
		},
		95: {
		  name: '北斗导向',
		  code: 'bddx'
		},
		96: {
		  name: '固定冠层温度',
		  code: 'gdgcwd'
		},
		97: {
		  name: '发电机',
		  code: 'fdj'
		},
		98: {
		  name: '电表',
		  code: 'db'
		},
    99: {
      name: '视频监控',
      code: 'spjk'
    },
    100: {
      name: '网关',
      code: 'wg'
    },
    101: {
      name: '球阀',
      code: 'qf'
    }
  },
	hunterActionTypes:[{
		text: "阀门",
		value: "Station"
	}, {
		text: "阀门组",
		value: "Block"
	}, {
		text: "计划任务",
		value: "Program"
	}],
  stations: [{ value: 1, text: '阀门 1' }, { value: 2, text: '阀门 2' }, { value: 3, text: '阀门 3' }, { value: 4, text: '阀门 4' }, { value: 5, text: '阀门 5' }, { value: 6, text: '阀门 6' }, { value: 7, text: '阀门 7' }, { value: 8, text: '阀门 8' }, { value: 9, text: '阀门 9' }, { value: 10, text: '阀门 10' }, { value: 11, text: '阀门 11' }, { value: 12, text: '阀门 12' }, { value: 13, text: '阀门 13' }, { value: 14, text: '阀门 14' }, { value: 15, text: '阀门 15' }, { value: 16, text: '阀门 16' }, { value: 17, text: '阀门 17' }, { value: 18, text: '阀门 18' }, { value: 19, text: '阀门 19' }, { value: 20, text: '阀门 20' }, { value: 21, text: '阀门 21' }, { value: 22, text: '阀门 22' }, { value: 23, text: '阀门 23' }, { value: 24, text: '阀门 24' }, { value: 25, text: '阀门 25' }, { value: 26, text: '阀门 26' }, { value: 27, text: '阀门 27' }, { value: 28, text: '阀门 28' }, { value: 29, text: '阀门 29' }, { value: 30, text: '阀门 30' }, { value: 31, text: '阀门 31' }, { value: 32, text: '阀门 32' }, { value: 33, text: '阀门 33' }, { value: 34, text: '阀门 34' }, { value: 35, text: '阀门 35' }, { value: 36, text: '阀门 36' }, { value: 37, text: '阀门 37' }, { value: 38, text: '阀门 38' }, { value: 39, text: '阀门 39' }, { value: 40, text: '阀门 40' }, { value: 41, text: '阀门 41' }, { value: 42, text: '阀门 42' }, { value: 43, text: '阀门 43' }, { value: 44, text: '阀门 44' }, { value: 45, text: '阀门 45' }, { value: 46, text: '阀门 46' }, { value: 47, text: '阀门 47' }, { value: 48, text: '阀门 48' }, { value: 49, text: '阀门 49' }, { value: 50, text: '阀门 50' }, { value: 51, text: '阀门 51' }, { value: 52, text: '阀门 52' }, { value: 53, text: '阀门 53' }, { value: 54, text: '阀门 54' }, { value: 55, text: '阀门 55' }, { value: 56, text: '阀门 56' }, { value: 57, text: '阀门 57' }, { value: 58, text: '阀门 58' }, { value: 59, text: '阀门 59' }, { value: 60, text: '阀门 60' }, { value: 61, text: '阀门 61' }, { value: 62, text: '阀门 62' }, { value: 63, text: '阀门 63' }, { value: 64, text: '阀门 64' }, { value: 65, text: '阀门 65' }, { value: 66, text: '阀门 66' }, { value: 67, text: '阀门 67' }, { value: 68, text: '阀门 68' }, { value: 69, text: '阀门 69' }, { value: 70, text: '阀门 70' }, { value: 71, text: '阀门 71' }, { value: 72, text: '阀门 72' }, { value: 73, text: '阀门 73' }, { value: 74, text: '阀门 74' }, { value: 75, text: '阀门 75' }],
  blocks: [{ value: 1, text: '阀门组 1' }, { value: 2, text: '阀门组 2' }, { value: 3, text: '阀门组 3' }, { value: 4, text: '阀门组 4' }, { value: 5, text: '阀门组 5' }, { value: 6, text: '阀门组 6' }, { value: 7, text: '阀门组 7' }, { value: 8, text: '阀门组 8' }, { value: 9, text: '阀门组 9' }, { value: 10, text: '阀门组 10' }, { value: 11, text: '阀门组 11' }, { value: 12, text: '阀门组 12' }, { value: 13, text: '阀门组 13' }, { value: 14, text: '阀门组 14' }, { value: 15, text: '阀门组 15' }, { value: 16, text: '阀门组 16' }, { value: 17, text: '阀门组 17' }, { value: 18, text: '阀门组 18' }, { value: 19, text: '阀门组 19' }, { value: 20, text: '阀门组 20' }, { value: 21, text: '阀门组 21' }, { value: 22, text: '阀门组 22' }, { value: 23, text: '阀门组 23' }, { value: 24, text: '阀门组 24' }, { value: 25, text: '阀门组 25' }, { value: 26, text: '阀门组 26' }, { value: 27, text: '阀门组 27' }, { value: 28, text: '阀门组 28' }, { value: 29, text: '阀门组 29' }, { value: 30, text: '阀门组 30' }, { value: 31, text: '阀门组 31' }, { value: 32, text: '阀门组 32' }, { value: 33, text: '阀门组 33' }, { value: 34, text: '阀门组 34' }, { value: 35, text: '阀门组 35' }, { value: 36, text: '阀门组 36' }, { value: 37, text: '阀门组 37' }, { value: 38, text: '阀门组 38' }, { value: 39, text: '阀门组 39' }, { value: 40, text: '阀门组 40' }, { value: 41, text: '阀门组 41' }, { value: 42, text: '阀门组 42' }, { value: 43, text: '阀门组 43' }, { value: 44, text: '阀门组 44' }, { value: 45, text: '阀门组 45' }, { value: 46, text: '阀门组 46' }, { value: 47, text: '阀门组 47' }, { value: 48, text: '阀门组 48' }, { value: 49, text: '阀门组 49' }, { value: 50, text: '阀门组 50' }, { value: 51, text: '阀门组 51' }, { value: 52, text: '阀门组 52' }, { value: 53, text: '阀门组 53' }, { value: 54, text: '阀门组 54' }, { value: 55, text: '阀门组 55' }, { value: 56, text: '阀门组 56' }, { value: 57, text: '阀门组 57' }, { value: 58, text: '阀门组 58' }, { value: 59, text: '阀门组 59' }, { value: 60, text: '阀门组 60' }, { value: 61, text: '阀门组 61' }, { value: 62, text: '阀门组 62' }, { value: 63, text: '阀门组 63' }, { value: 64, text: '阀门组 64' }],
  programs: [{ value: 1, text: '计划任务 1' }, { value: 2, text: '计划任务 2' }, { value: 3, text: '计划任务 3' }, { value: 4, text: '计划任务 4' }, { value: 5, text: '计划任务 5' }, { value: 6, text: '计划任务 6' }, { value: 7, text: '计划任务 7' }, { value: 8, text: '计划任务 8' }, { value: 9, text: '计划任务 9' }, { value: 10, text: '计划任务 10' }, { value: 11, text: '计划任务 11' }, { value: 12, text: '计划任务 12' }, { value: 13, text: '计划任务 13' }, { value: 14, text: '计划任务 14' }, { value: 15, text: '计划任务 15' }, { value: 16, text: '计划任务 16' }, { value: 17, text: '计划任务 17' }, { value: 18, text: '计划任务 18' }, { value: 19, text: '计划任务 19' }, { value: 20, text: '计划任务 20' }, { value: 21, text: '计划任务 21' }, { value: 22, text: '计划任务 22' }, { value: 23, text: '计划任务 23' }, { value: 24, text: '计划任务 24' }, { value: 25, text: '计划任务 25' }, { value: 26, text: '计划任务 26' }, { value: 27, text: '计划任务 27' }, { value: 28, text: '计划任务 28' }, { value: 29, text: '计划任务 29' }, { value: 30, text: '计划任务 30' }, { value: 31, text: '计划任务 31' }, { value: 32, text: '计划任务 32' }],
  runtimes:[{value:1,text:'1分钟'},{value:5,text:'5分钟'},{value:10,text:'10分钟'},{value:30,text:'30分钟'},{value:60,text:'60分钟'}],
	mqttConnection: {
		invocationContext: {
			host: 'www.zesi.com.cn',
			port: 443,
			path: '',
			clientId: ''
		},
		timeout: 4000,
		keepAliveInterval: 10,
		cleanSession: false,
		useSSL: true,
		reconnect:false,
		userName: 'user',  
		password: 'Dev1"3$5', 
  },
	mqttExtraConnection: {
		invocationContext: {
			host: 'acc2.intelirri.com',
			port: 9084,
			path: '',
			clientId: ''
		},
		timeout: 4000,
		keepAliveInterval: 10,
		cleanSession: false,
		useSSL: true,
		reconnect:false,
		userName: 'rtcm',  
		password: 'Dev1@3$5', 
	},
	mqttConnectionH5: {
		host: 'www.zesi.com.cn',
		port: 443,
		endpoint: '/mqtt',
		clean: true, // 保留会话
		connectTimeout: 4000, // 超时时间
		reconnectPeriod: 4000, // 重连时间间隔
		// 认证信息
		clientId: 'mqttjs_3be2c321' + generateRandStr(),
		username: 'user',
		password: 'Dev1"3$5'
	},
	windDirectionMap:{
		1:'东北偏北',
		2:'东北',
		3:'东北偏东',
		4:'东',
		5:'东南偏东',
		6:'东南',
		7:'东南偏南',
		8:'南',
		9:'西南偏南',
		10:'西南',
		11:'西南偏西',
		12:'西',
		13:'西北偏西',
		14:'西北',
		15:'西北偏北',
		16:'北'
	},
	ASCII:{
		':':1,
		';':2,
		'<':3,
		'=':4,
		'>':5,
		'?':6,
		'@':7,
		'A':8,
		'B':9,
		'C':10,
		'D':11,
		'E':12,
		'F':13,
		'G':14,
		'H':15,
		'I':16,
		'J':17,
		'K':18,
		'L':19,
		'M':20,
		'N':21,
		'O':22,
		'P':23,
		'Q':24,
		'R':25,
		'S':26,
		'T':27,
		'U':28,
		'V':29,
		'W':30,
		'X':31,
		'Y':32,
		'Z':33,
		'[':34,
		'\\':35,
		']':36,
		'^':37,
		'_':38,
		'`':39,
		'a':40,
		'b':41,
		'c':42,
		'd':43,
		'e':44,
		'f':45,
		'g':46,
		'h':47,
		'i':48,
		'j':49,
		'k':50,
		'l':51,
		'm':52,
		'n':53,
		'o':54,
		'p':55,
		'q':56,
		'r':57,
		's':58,
		't':59,
		'u':60,
		'v':61,
		'w':62,
		'x':63,
		'y':64,
		'z':65
	},
	fields:[{
		id:1,
		initialable:true,
		name:'地块1'
	},{
		id:2,
		initialable:false,
		name:'地块2'
	}],
	soils:[{
		id:1,
		name:'砂土',
		descri:'砂土是指土壤颗粒组成中砂粒含量较高的土壤，土壤质地的基本类别之一。根据国际制的规定，砂土含砂粒可达85-100%，而细土粒仅占0-15%。中国规定，砂粒（粒径1-0.05毫米）含量大于50%为砂土。砂土保水保肥能力较差，养分含量少，土温变化较快，但通气透水性较好，并易于耕种。在利用管理上，要注意选择耐旱品种，保证水源，及时灌溉，注意保墒，施肥时，应薄施勤施。',
		picture:'https://img.intelirri.com/shatu.jpg',
		unit_weight:12,
		field_capacity:13,
		wilting_coefficient:14,
		water_content:15,
		runoff_curve:16
	},{
		id:2,
		name:'壤土',
		descri:'壤土，指土壤颗粒组成中黏粒、粉粒、砂粒含量适中的土壤，颗粒大小在0.2mm至0.02mm之间。质地介于黏土和砂土之间，兼有黏土和砂土的优点，通气透水、保水保温性能都较好，耐旱耐涝，抗逆性强，适种性广，适耕期长，易培育成高产稳产土壤，也是较理想的农业土壤。',
		picture:'https://img.intelirri.com/rangtu.jpg',
		unit_weight:12,
		field_capacity:13,
		wilting_coefficient:14,
		water_content:15,
		runoff_curve:16
	},{
		id:3,
		name:'砂壤土',
		descri:'砂质壤土系指组成土壤的砂粒、坋粒及粘粒等不同大小之矿物粒子的含量百分比，一般大于2mm以上之石砾则不考虑在内。砂质壤土虽含砂量仍相当多，但因亦含有少量坋粒及粘粒，具有土粒间之结合性。干时可成块，但易破碎，湿时可感觉粘性，所握成之土块，小心抚弄之不致破碎。',
		picture:'https://img.intelirri.com/sharangtu.jpg',
		unit_weight:12,
		field_capacity:13,
		wilting_coefficient:14,
		water_content:15,
		runoff_curve:16
	},{
		id:4,
		name:'黏土',
		descri:'黏土是含沙粒很少、有黏性的土壤，水分不容易从中通过才具有较好的可塑性。一般的黏土都由硅酸盐矿物在地球表面风化后形成，一般在原地风化，颗粒较大而成分接近原来的石块的，称为原生黏土或者是一次黏土。这种黏土的成分主要为氧化硅与氧化铝，色白而耐火，为配制瓷土之主要原料。',
		picture:'https://img.intelirri.com/niantu.jpg',
		unit_weight:12,
		field_capacity:13,
		wilting_coefficient:14,
		water_content:15,
		runoff_curve:16
	}],
	crops:[{
		id:1,
		name:'苜蓿',
		descri:'苜蓿（mùxu）是苜蓿属（Medicago）植物的通称，俗称金花菜，是一种多年生开花植物。其中最著名的是作为牧草的紫花苜蓿（Medicago sativa）。苜蓿种类繁多，多是野生的草本植物。中国产的苜蓿主要有三种。营养价值很高，具有清脾胃、利大小肠、下膀胱结石的功效。 苜蓿含有最丰富的维他命K，成分之高，驾乎一切蔬菜之上。其他如维他命C、B也相当丰富。多为牲畜饲料。在西汉从西域引进。',
		picture:'https://img.intelirri.com/muxu.jpg'
	},{
		id:2,
		name:'小麦',
		descri:'小麦是小麦属植物的统称，代表种为普通小麦（学名：Triticum aestivum L.）是禾本科植物，是一种在世界各地广泛种植的谷类作物，小麦的颖果是人类的主食之一，磨成面粉后可制作面包、馒头、饼干、面条等食物，发酵后可制成啤酒、酒精、白酒（如伏特加），或生物质燃料。',
		picture:'https://img.intelirri.com/xiaomai.jpg'
	},{
		id:3,
		name:'玉米',
		descri:'玉米（Zea mays L.）是禾本科的一年生草本植物 [1]  。又名苞谷、苞米棒子、玉蜀黍、珍珠米等 [2]  。原产于中美洲和南美洲，它是世界重要的粮食作物，广泛分布于美国、中国、巴西和其他国家。具有很强的耐旱性、耐寒性、耐贫瘠性以及极好的环境适应性。玉米的营养价值较高，是优良的粮食作物。',
		picture:'https://img.intelirri.com/yumi.jpg'
	}],
	qxzs:[{
		id:1,
		name:'气象站1',
		descri:'黏土是含沙粒很少、有黏性的土壤，水分不容易从中通过才具有较好的可塑性。一般的黏土都由硅酸盐矿物在地球表面风化后形成，一般在原地风化，颗粒较大而成分接近原来的石块的，称为原生黏土或者是一次黏土。这种黏土的成分主要为氧化硅与氧化铝，色白而耐火，为配制瓷土之主要原料。',
		picture:'https://img.intelirri.com/qxz.jpg',
		lng:132.334398,
		lat:36.223156,
		elevation:40,
		dealTime:'2021-12-21 10:56',
		intervalTime:15
	}],
	sqzs:[{
		id:1,
		name:'墒情站1',
		descri:'黏土是含沙粒很少、有黏性的土壤，水分不容易从中通过才具有较好的可塑性。一般的黏土都由硅酸盐矿物在地球表面风化后形成，一般在原地风化，颗粒较大而成分接近原来的石块的，称为原生黏土或者是一次黏土。这种黏土的成分主要为氧化硅与氧化铝，色白而耐火，为配制瓷土之主要原料。',
		picture:'https://img.intelirri.com/sqz.jpg',
		M1:28.87,
		M2:36.12,
		M3:18.43,
		M4:11.24,
		M5:14.59
	},{
		id:2,
		name:'墒情站2',
		descri:'黏土是含沙粒很少、有黏性的土壤，水分不容易从中通过才具有较好的可塑性。一般的黏土都由硅酸盐矿物在地球表面风化后形成，一般在原地风化，颗粒较大而成分接近原来的石块的，称为原生黏土或者是一次黏土。这种黏土的成分主要为氧化硅与氧化铝，色白而耐火，为配制瓷土之主要原料。',
		picture:'https://img.intelirri.com/sqz.jpg',
		M1:24.87,
		M2:31.12,
		M3:19.43,
		M4:12.24,
		M5:17.59
	}],
	gcwds:[{
		id:1,
		name:'冠层站1',
		descri:'黏土是含沙粒很少、有黏性的土壤，水分不容易从中通过才具有较好的可塑性。一般的黏土都由硅酸盐矿物在地球表面风化后形成，一般在原地风化，颗粒较大而成分接近原来的石块的，称为原生黏土或者是一次黏土。这种黏土的成分主要为氧化硅与氧化铝，色白而耐火，为配制瓷土之主要原料。',
		picture:'https://img.intelirri.com/gcwd.jpg',
		Temp:28.87,
		Height:36.12
	},{
		id:2,
		name:'冠层站2',
		descri:'黏土是含沙粒很少、有黏性的土壤，水分不容易从中通过才具有较好的可塑性。一般的黏土都由硅酸盐矿物在地球表面风化后形成，一般在原地风化，颗粒较大而成分接近原来的石块的，称为原生黏土或者是一次黏土。这种黏土的成分主要为氧化硅与氧化铝，色白而耐火，为配制瓷土之主要原料。',
		picture:'https://img.intelirri.com/gcwd.jpg',
		Temp:12.24,
		Height:17.59
	}],
	pgs:[{
		id:1,
		name:'涿州喷灌机',
		descri:'黏土是含沙粒很少、有黏性的土壤，水分不容易从中通过才具有较好的可塑性。',
		picture:'https://img.intelirri.com/sprinkler.jpg'
	}],
	sbs:[{
		id:1,
		name:'涿州水泵',
		descri:'黏土是含沙粒很少、有黏性的土壤，水分不容易从中通过才具有较好的可塑性。',
		picture:'https://img.intelirri.com/pump.jpg'
	}],
	batches:[{
		id:1,
	},{
		id:2
	},{
		id:3
	}],
	naviAttrs: [
		{unit:'秒',name:'数据处理间隔',namekey:'m_dataSec',type:'select',items:[{name:'1秒',value:1},{name:'2秒',value:2},{name:'3秒',value:3},{name:'4秒',value:4},{name:'5秒',value:5}]},
		{unit:'秒',name:'监视时间间隔',namekey:'m_monSec',type:'number'},
		{unit:'秒',name:'一次监视回溯时长',namekey:'m_monHistSec',type:'number'},
		{name:'坐标远点是否平移到A点',namekey:'m_shiftToA',type:'switch'},
		{unit:'米',name:'两天线安装间距',namekey:'m_antLen',type:'digit'},
		{unit:'米',name:'安全距离',namekey:'m_offset1',type:'digit'},
		{unit:'米',name:'报警距离',namekey:'m_offset2',type:'digit'},
		{name:'m_vtsPath',namekey:'m_vtsPath_format',type:'text'}
	],
	rtcmAttrs:[
		{name:'是否生效',namekey:'enable',type:'switch'},
		{name:'clientId',namekey:'clientId',type:'text'},
		{name:'subList',namekey:'subList',type:'text'},
	],
	ntripAttrs: [
		{name:'是否生效',namekey:'enable',type:'switch'},
		{name:'IP',namekey:'host',type:'text'},
		{name:'端口',namekey:'port',type:'text'},
		{name:'mountPoint',namekey:'mountPoint',type:'text'},
		{name:'用户密码',namekey:'userAndPwd',type:'text'},
		{unit:'秒',name:'断开重连时间',namekey:'reconnectDelay',type:'number'},
	],
	gisAttrs: [
	  { name: 'A点', namekey: 'a', type: 'text' },
	  { name: 'B点', namekey: 'b', type: 'text' },
	  { name: 'rtk', namekey: 'rtk', type: 'text' },
	  { name: '方向角', namekey: 'dir', type: 'text', unit: '°' }
	]
}

export const hunterInfoDict = {
	0: 'Programmable Off is Active',
	1: 'Data was Reset',
	3: 'Configuration was Updated',
	4: 'Controller is Irrigating',
	5: 'Mute is Active',
	6: 'Controller Suspend is Active',
	7: 'Controller Pause is Active',
	11: 'Shutdown is Active',
	12: 'Station Size Changed',
	13: 'Time/Date was Updated',
	14: 'Active Event List Full',
	15: 'A Program was Stopped',
	16: 'A Block was Stopped',
	17: 'A Station or PMV was Stopped',
	18: 'All Irrigation was Stopped',
	19: 'Condition Response Statement Started',
	20: 'Decoder Wire Test Mode Active',
	21: 'Clik Sensor is Active',
	22: 'Weather Sensor is Active',
	23: 'Controller Inventory Changed'
}
export const hunterAlarmDict = {
	0: 'Station Size is Zero',
	1: 'Power Outage Detected',
	2: 'MainSafe/Flow Zone Alarm Detected',
	3: 'Clik Sensor Alarm Detected',
	4: 'Decoder Module is Overloaded',
	5: 'Station Fault Detected',
	6: 'P/MV Fault Detected',
	7: 'Weather Sensor Communications Fault Detected',
	8: 'RTC Fault Detected',
	9: 'Maximum Transformer Current Exceeded',
	10: 'CAN Bus Fault Detected',
	11: 'Low Voltage Fault Detected',
	12: 'Weather Sensor Alarm Detected',
	13: 'Station Flow Alarm Detected',
	14: 'Clik Sensor Rain Delay Alarm',
	15: 'NWW Violation Detected',
	16: 'Sensor Decoder Fault Detected',
	17: 'Weather Sensor Rain Delay Alarm'
}

export const devices = [
	{
        "serialno": "0104.0007.2424004788",
        "scada_id": "0103.0007.2038000000",
        "gw_serialno": "0A3651D76146ED8C",
        "project_id": "116",
        "project_id_raw": null,
        "field_id": "86",
        "product_id": "149",
        "product_type": "101",
        "name": "中3-1-4788-027",
        "name_en": null,
        "idx": "27",
        "lat": "44.5653246",
        "lng": "85.6775022",
        "kml": null,
        "device_serialno": "0106.0007.2425004927",
        "rtu_serialno": null,
        "settings": null,
        "extention": null,
        "status": 1,
        "created_at": "2024-06-12 13:46:01",
        "picture": "https://api.zesi.com.cn/storage/device/qf.jpg",
        "serialno_num": "4788",
        "descri": null,
        "map_show": 1,
        "joinable": null,
        "status_map": null,
        "irrigation_field": "",
        "ble": null,
        "imei": null,
        "rtuPortDisplays": [
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "VPercent",
                "name": "电池电量",
                "unit": "%",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 0,
                "offset": "0",
                "idx": 0,
                "iconfont": "icon-dianchidiangliang",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "A",
                "name": "阀门角度",
                "unit": "°",
                "kunit": 0.01,
                "kunit_pc": "0.01",
                "fmt": 2,
                "offset": "0",
                "idx": 1,
                "iconfont": "icon-famen",
                "identity": "main,attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "V",
                "name": "电池电压",
                "unit": "V",
                "kunit": 0.001,
                "kunit_pc": "0.001",
                "fmt": 2,
                "offset": "0",
                "idx": 2,
                "iconfont": "icon-dianchidiangliang",
                "identity": "attr,extra,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "F0",
                "name": "入口流量",
                "unit": "m³/h",
                "kunit": 0.1,
                "kunit_pc": "0.1",
                "fmt": 2,
                "offset": "0",
                "idx": 3,
                "iconfont": "icon-rate",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 0,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "P0",
                "name": "入口压力",
                "unit": "MPa",
                "kunit": 0.1,
                "kunit_pc": "0.1",
                "fmt": 2,
                "offset": "0",
                "idx": 4,
                "iconfont": "icon-rate",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 0,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "P1",
                "name": "出口压力1",
                "unit": "MPa",
                "kunit": 0.1,
                "kunit_pc": "0.1",
                "fmt": 2,
                "offset": "0",
                "idx": 5,
                "iconfont": "icon-rate",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 0,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "P2",
                "name": "出口压力2",
                "unit": "MPa",
                "kunit": 0.1,
                "kunit_pc": "0.1",
                "fmt": 2,
                "offset": "0",
                "idx": 6,
                "iconfont": "icon-rate",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 0,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "P3",
                "name": "出口压力3",
                "unit": "MPa",
                "kunit": 0.1,
                "kunit_pc": "0.1",
                "fmt": 2,
                "offset": "0",
                "idx": 7,
                "iconfont": "icon-rate",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 0,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "P4",
                "name": "出口压力4",
                "unit": "MPa",
                "kunit": 0.1,
                "kunit_pc": "0.1",
                "fmt": 2,
                "offset": "0",
                "idx": 8,
                "iconfont": "icon-rate",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 0,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "rssi",
                "name": "信号强度",
                "unit": "dBm",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 0,
                "offset": "0",
                "idx": 9,
                "iconfont": "icon-phone-signal-full",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "namekey": "autoCron",
                "name": "自动测试",
                "unit": "",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 0,
                "offset": "0",
                "idx": 10,
                "iconfont": "icon-remote-control",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "bool",
                "bool_format_arr": "关闭,开启",
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 0,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            }
        ],
        "rtuActionDisplays": [
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "name": "1#开度",
                "action_type": "raw",
                "action_arr": "[{\"name\":\"开启\",\"namekey\":\"Open1\",\"params\":1}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 1,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 0
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "name": "2#开度",
                "action_type": "raw",
                "action_arr": "[{\"name\":\"开启\",\"namekey\":\"Open2\",\"params\":1}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 2,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 0
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "name": "设置零位",
                "action_type": "select",
                "action_arr": "[{\"name\":\"确定\",\"namekey\":\"Reset\",\"params\":1}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 3,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 1
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "name": "阀门关闭",
                "action_type": "select",
                "action_arr": "[{\"name\":\"确定\",\"namekey\":\"Close\",\"params\":1}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 4,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 0
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "name": "状态召测",
                "action_type": "select",
                "action_arr": "[{\"name\":\"确定\",\"namekey\":\"InfoFetch\",\"params\":1}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 7,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 0
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "name": "阀门设备类型",
                "action_type": "select",
                "action_arr": "[{\"name\":\"正反转\",\"namekey\":\"ValveType\",\"params\":1},{\"name\":\"单向转\",\"namekey\":\"ValveType\",\"params\":0}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 8,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 1
            },
            {
                "serialno": "0104.0007.2424004788",
                "rtu_serialno": null,
                "name": "自动测试",
                "action_type": "select",
                "action_arr": "[{\"name\":\"开启\",\"namekey\":\"autoCron\",\"params\":1},{\"name\":\"关闭\",\"namekey\":\"autoCron\",\"params\":0}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 9,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 1
            }
        ],
        "rtuSetDisplays": [],
        "devices": [],
        "product": {
            "id": "149",
            "name": "球阀V1.0",
            "maker": {
                "txt": "中农智冠",
                "val": 1
            },
            "product_type": {
                "txt": "球阀",
                "val": 101
            },
            "model": "V1.0",
            "hw_ver": "V1.0",
            "fw_ver": "V1.0",
            "spec": [
                {
                    "name": "protocol",
                    "value": "LoRa"
                }
            ],
            "picture": null,
            "created_at": "2020-04-29 11:06:09"
        },
        "cells": [],
        "states": {
            "P3": "0",
            "rssi": "-114",
            "V": "7968",
            "F0": "3386",
            "datatime": "2024-11-02 07:24:40",
            "A": "42",
            "P1": "0",
            "P4": "0",
            "snr": "-4",
            "P2": "0",
            "P0": "0",
            "autoCron": 0,
            "serialno": "0104.0007.2424004788",
            "nodatatime": true,
            "status": "offline",
            "liveness": "[[\"D\",\"0A3651D76146ED8C\",\"RSP\",\"STS\",\"0104.0007.2424004788\"],{\"status\":\"offline\",\"time\":1730507082771}]",
            "VPercent": 80.44444444444444
        }
    },{
        "serialno": "0101.0007.2432005109",
        "scada_id": "0103.0007.2038000000",
        "gw_serialno": null,
        "project_id": "116",
        "project_id_raw": null,
        "field_id": "86",
        "product_id": "143",
        "product_type": "3",
        "name": "水泵",
        "name_en": null,
        "idx": null,
        "lat": "44.566196",
        "lng": "85.6829739",
        "kml": null,
        "device_serialno": "",
        "rtu_serialno": null,
        "settings": null,
        "extention": null,
        "status": 1,
        "created_at": "2024-08-06 14:18:16",
        "picture": null,
        "serialno_num": "5109",
        "descri": null,
        "map_show": 1,
        "joinable": null,
        "status_map": null,
        "irrigation_field": "",
        "ble": null,
        "imei": null,
        "rtuPortDisplays": [
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "FlowA",
                "name": "累积流量",
                "unit": "m³",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 0,
                "iconfont": "icon-liuliang",
                "identity": "attr,census,main",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "FlowC",
                "name": "瞬时流量",
                "unit": "m³/h",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 0,
                "iconfont": "icon-liuliang",
                "identity": "attr,census,extra",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "Mode",
                "name": "运行模式",
                "unit": null,
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 0,
                "offset": "0",
                "idx": 1,
                "iconfont": "icon-famen",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "bool",
                "bool_format_arr": "手动,自动",
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "StatRun",
                "name": "运行状态",
                "unit": null,
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 0,
                "offset": "0",
                "idx": 2,
                "iconfont": "icon-remote-control",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "bool",
                "bool_format_arr": "停止,运行",
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "FILTER_HMI",
                "name": "过滤器",
                "unit": null,
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 0,
                "offset": "0",
                "idx": 3,
                "iconfont": "icon-dianya",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "bool",
                "bool_format_arr": "停止,运行",
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "AV",
                "name": "A相电压",
                "unit": "V",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 4,
                "iconfont": "icon-dianya",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "BV",
                "name": "B相电压",
                "unit": "V",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 5,
                "iconfont": "icon-dianya",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "CV",
                "name": "C相电压",
                "unit": "V",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 6,
                "iconfont": "icon-dianya",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "UABV",
                "name": "UAB线电压",
                "unit": "V",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 7,
                "iconfont": "icon-dianya",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "UBCV",
                "name": "UBC线电压",
                "unit": "V",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 8,
                "iconfont": "icon-dianya",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "UACV",
                "name": "UAC线电压",
                "unit": "V",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 9,
                "iconfont": "icon-dianliu",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "AI",
                "name": "A相电流",
                "unit": "A",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 10,
                "iconfont": "icon-dianliu",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "BI",
                "name": "B相电流",
                "unit": "A",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 11,
                "iconfont": "icon-dianliu",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "CI",
                "name": "C相电流",
                "unit": "A",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 12,
                "iconfont": "icon-gonglv",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "P1",
                "name": "三相有功功率",
                "unit": "kW",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 13,
                "iconfont": "icon-gonglv",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "P2",
                "name": "三相视在功率",
                "unit": "kVA",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 14,
                "iconfont": "icon-gonglv",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "P3",
                "name": "三相功率因数",
                "unit": "",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 15,
                "iconfont": "icon-gonglv",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "Q",
                "name": "总电量",
                "unit": "kW.h",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 16,
                "iconfont": "icon-dianchidiangliang",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "Level",
                "name": "沉砂池液位",
                "unit": "m",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 17,
                "iconfont": "icon-yewei",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "Pressure",
                "name": "管道压力",
                "unit": "MPa",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 18,
                "iconfont": "icon-yali",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "QC",
                "name": "本次灌溉用电量",
                "unit": "m³",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 21,
                "iconfont": "icon-dianchidiangliang",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "WC",
                "name": "本次灌溉用水量",
                "unit": "kW.h",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 22,
                "iconfont": "icon-yewei",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "0"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "EER",
                "name": "能效比",
                "unit": null,
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 23,
                "iconfont": "icon-rate",
                "identity": "attr,census",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "PressureS",
                "name": "压力设定",
                "unit": "MPa",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 24,
                "iconfont": "icon-yali",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "FlowS",
                "name": "流量设定",
                "unit": "m³/h",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 25,
                "iconfont": "icon-liuliang",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "namekey": "FreqS",
                "name": "频率设定",
                "unit": "Hz",
                "kunit": 1,
                "kunit_pc": "1",
                "fmt": 2,
                "offset": "0",
                "idx": 26,
                "iconfont": "icon-pinlv",
                "identity": "attr",
                "yaxistype": "0",
                "diffable": "0",
                "datatype": "float",
                "bool_format_arr": null,
                "created_at": "2020-05-11 09:33:44",
                "expression": null,
                "type": "line",
                "enums": null,
                "show_state": 1,
                "notzero": "0",
                "default_val": "0",
                "superable": "1"
            }
        ],
        "rtuActionDisplays": [
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "name": "启停控制",
                "action_type": "select",
                "action_arr": "[{\"name\":\"启动\",\"namekey\":\"StartPump\",\"params\":1},{\"name\":\"停止\",\"namekey\":\"StopPump\",\"params\":1}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 1,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 1
            },
            {
                "serialno": "0101.0007.2432005109",
                "rtu_serialno": null,
                "name": "过滤器控制",
                "action_type": "select",
                "action_arr": "[{\"name\":\"启动\",\"namekey\":\"StartFilter\",\"params\":1},{\"name\":\"停止\",\"namekey\":\"StopFilter\",\"params\":1}]",
                "state_arr": null,
                "iconfont": "icon-switch",
                "idx": 2,
                "ref": "",
                "prefix": "",
                "mode": "",
                "show_state": 0,
                "default_val": null,
                "created_at": "2024-03-19 15:08:52",
                "superable": 1
            }
        ],
        "rtuSetDisplays": [],
        "devices": [],
        "product": {
            "id": "143",
            "name": "水泵V4.0",
            "maker": {
                "txt": "中农智冠",
                "val": 1
            },
            "product_type": {
                "txt": "水泵",
                "val": 3
            },
            "model": "V4.0",
            "hw_ver": "V4.0",
            "fw_ver": "V4.0",
            "spec": [
                {
                    "name": "pumps",
                    "value": 1
                },
                {
                    "name": "filters",
                    "value": 0
                }
            ],
            "picture": null,
            "created_at": "2020-07-01 18:15:53"
        },
        "cells": [],
        "states": {
            "autoCron": 0,
            "serialno": "0101.0007.2432005109",
            "nodatatime": false,
            "status": "offline",
            "liveness": "[[\"D\",\"0103.0007.2038000000\",\"RSP\",\"LIVENESS\",\"0101.0007.2432005109\"],{\"status\":\"offline\",\"time\":1730871399127}]"
        }
    },
	]
